<html>
<head>
	<title>GT Project Manager - Project Tasks Report</title>
	<link rel="stylesheet" type="text/css" href="main.css" />
	<link rel="stylesheet" type="text/css" href="inner.css" />
	<style type="text/css">
		.milestone {
			background-color: #82AFE4;
		}
		
		.milestone td {
			border-top: 3px solid #EBF1DF;
		}
		
		.task td {
			padding-left: 6px;
			text-align: left;
		}
		
		.total {
			text-align: right;
			border-top: 1px solid black;
			font-weight: bold;
			padding-right: 100px;
		}
	</style>
</head>
<body>
	<table cellspacing="0" cellpadding="0" id="main">
		<tr><td id="title">
			Project Tasks Report for <i>{{ project.name }}</i>
			<div class="nav">
				<a href="login.html">Log Out</a><br />
				<a href="dashboard.html">Dashboard</a><br />
				<a href="project_info.html">Project Info</a>
			</div>
		</td></tr>
		<tr>
			<td>
				<table class="subsection summary" cellspacing="0" cellpadding="0">
					<tr>
						<th>Task Name</th>
						<th>Due Date</th>
						<th>Assigned To</th>
						<th>Status</th>
						<th>Total Hours</th>
					</tr>
					{% for m in milestones %}
					<tr class="milestone">
						<td>{{ m.name }}</td>
						<td>{{ m.due_date }}</td>
						<td>&nbsp;</td>
						<td>{% if m.open == 1 %}Active{% else %}Complete{% endif %}</td>
						<td>{{ m.hours }}</td>
					</tr>
					{% for t in tasks %}
					<tr class="task">
						<td><a href="task_info.html">{{ t.name }}</a></td>
						<td>{{ t.due_date }}</td>
						<td>{{ t.employee }}</td>
						<td>{% if t.open == 1 %}Open{% else %}Closed{% endif %}</td>
						<td>{{ t.hours }}</td>
					</tr>
					{% endfor %}
					{% endfor %}
					<tr><td colspan="5" class="total">
						Project Total Hours: {{ totalHours }}
					</td></tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>